<%@page import="dao.MemberDao"%>
<%@page import="vo.MemberVo"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%

	/* String m_id = request.getParameter("m_id");	
	MemberVo mvo =MemberDao.getDao().checkId(m_id);
	
	System.out.println("id_check"+m_id); */
	
	String name = request.getParameter("name");
	String birth_y = request.getParameter("birth_y");
	String birth_m = request.getParameter("birth_m");
	String birth_d = request.getParameter("birth_d");
	
	System.out.println("이름:" +name);
	System.out.println("생년월일1" + birth_y + birth_m +birth_d);
	
	
	
	MemberVo mvo = MemberDao.getDao().informMemberName(name);
	
	System.out.println("mvo_pass");
	
	String y = mvo.getM_birth_y();
	String m = mvo.getM_birth_m();
	String d = mvo.getM_birth_d();

	System.out.println("생년월일2" + y + m +d);
	
	
	String id = null;
	
	if(mvo==null)
		out.print("[{'result':'fail'}]");
	
	
	else {
		//생년월일 이름 일치
		if(birth_y.equals(y) && birth_m.equals(m)&& birth_d.equals(d)){
			id = mvo.getM_id();
			out.print("[{'result':'accord'},{'id':    '  "+   id   +"  '    }]");
			}
		//불일치
		else
			out.print("[{'result':'discord'}]");
	}
	
%>